<form id="pagerForm" method="post" action="#rel#">
	<input type="hidden" name="pageNum" value="<?php echo $pageNum ?>" />
	<input type="hidden" name="numPerPage" value="<?php echo $limit ?>" />
	<input type="hidden" name="orderField" value="<?php echo $field ?>" />
	<input type="hidden" name="orderDirection" value="<?php echo $order_by ?>" />
</form>

<div class="pageHeader">
	<form rel="pagerForm" onsubmit="return navTabSearch(this);" action="<?php echo site_url('backend/Stock/index'); ?>" method="post">
		<div class="searchBar">
			<ul class="searchContent">
				<li>
					<label>输入仓库地址：</label>
					<input type="text" name="address" value="<?php echo $this->input->post('address') ?>"/>
				</li>
			</ul>
			<div class="subBar right">
				<ul>
					<li><div class="buttonActive"><div class="buttonContent"><button type="submit">检索</button></div></div></li>
				</ul>
			</div>
		</div>
	</form>
</div>
<div class="pageContent">
	<div class="panelBar">
		<ul class="toolBar">
			<li><a class="add" href="<?php echo site_url('backend/Stock/add') ?>" target="navTab" rel="backend/Stock/add"><span>新增小仓库</span></a></li>
			
			<li class="line">line</li>
			<li><a class="icon" href="javascript:;" target="dwzExport" targetType="navTab" title="实要导出这些记录吗?"><span>导出EXCEL</span></a></li>
		</ul>
	</div>
	<table class="table" width="1200" layoutH="138">
		<thead>
			<tr>
				<th>ID号</th>
				<th width="230px">小仓库地址</th>
				<th width="100px">商品</th>
				<th>数量</th>
				<th>存入時間</th>
			</tr>
		</thead>
		<tbody>
			<?php foreach ($data as $al): ?>
				   <tr target="sid_user" rel="">
				   <td><?php echo $al['sid'] ?></td>
					<td><?php echo $al['description'] ?>--<?php echo $al['address'] ?></td>
					<td><?php echo $al['name'] ?></td>
					<td><?php echo $al['request_number'] ?></td>
					<td><?php echo date('Y-m-d H:i:s', $al['created_at']) ?></td>
				</tr>
			<?php endforeach; ?>
		</tbody>
	</table>
	<div class="panelBar">
		<div class="pages">
			<span>显示</span>
			<select class="combox" name="numPerPage" onchange="navTabPageBreak({numPerPage: this.value})">
				<?php foreach (array('20','50','100','200') as $v):?>
				<option value="<?php echo $v?>" <?php if($v==$limit):?>selected="selected"<?php endif;?>><?php echo $v?></option>
				<?php endforeach;?>
			</select>
			<span>条，共<?php echo $totalCount?>条</span>
		</div>

		<div class="pagination" targetType="navTab" totalCount="<?php echo $totalCount?>" numPerPage="<?php echo $limit?>" pageNumShown="10" currentPage="<?php echo $pageNum?>"></div>

	</div>
</div>
